package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @author RJ
 * @date 2022/9/13 16:35
 */
/*
    出库管理
 */
@TableName("out_info")
public class OutWareHouseBean {
    //出库id
    @TableId(value = "out_id", type = IdType.AUTO)
    private Integer outId;
    //领用日期
    @TableField("out_date")
    private LocalDate outDate = LocalDate.now();
    //出库班名
    @TableField("out_class_name")
    private String outClassName;
    //出库人
    @TableField("out_user")
    private String outUser;
    //明细集合
    @TableField(exist = false)
    private List<OutDrugBean> outList;

    public OutWareHouseBean() {
    }

    public OutWareHouseBean(String outClassName, String outUser) {
        this.outClassName = outClassName;
        this.outUser = outUser;
    }

    public Integer getOutId() {
        return outId;
    }

    public void setOutId(Integer outId) {
        this.outId = outId;
    }

    public LocalDate getOutDate() {
        return outDate;
    }

    public void setOutDate(LocalDate outDate) {
        this.outDate = outDate;
    }

    public String getOutClassName() {
        return outClassName;
    }

    public void setOutClassName(String outClassName) {
        this.outClassName = outClassName;
    }

    public String getOutUser() {
        return outUser;
    }

    public void setOutUser(String outUser) {
        this.outUser = outUser;
    }

    public List<OutDrugBean> getOutList() {
        return outList;
    }

    public void setOutList(List<OutDrugBean> outList) {
        this.outList = outList;
    }

    @Override
    public String toString() {
        return "OutWareHouseBean{" +
                "outId=" + outId +
                ", outDate=" + outDate +
                ", outClassName='" + outClassName + '\'' +
                ", outUser='" + outUser + '\'' +
                ", outList=" + outList +
                '}';
    }
}
